package com.electron.power.octopus.repository;

import org.springframework.data.domain.Pageable;
import org.springframework.data.mongodb.repository.Query;
import org.springframework.data.repository.reactive.ReactiveCrudRepository;

import com.electron.power.model.mod.ModBodyMap;

import reactor.core.publisher.Flux;

public interface ModBodyMapRepository extends ReactiveCrudRepository<ModBodyMap, String> {

	@Query(value="{ id: { $exists: true }}",sort = "{ creatTime : -1}")
	Flux<ModBodyMap> retrieveAllPaged(Pageable page);
	
}
